﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Configuration;
using System.Reflection;
using Products;


namespace Product_Compter
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("查看不同计算机的构成");
           
            
            cl_0423_ComputerBuilder cb = new cl_0423_BuilderC();
            cl_0423_Product pd = new cl_0423_Product();

            pd.setComputerBuilder(cb);

            cl_0423_Computer ct = pd.construct();

            Console.WriteLine("计算机组成");
            Console.WriteLine(ct.getCpu());
            Console.WriteLine(ct.getDisplay());
            Console.WriteLine(ct.getDrive());
            Console.WriteLine(ct.getGraphics());
            Console.WriteLine(ct.getMemory());
            Console.ReadKey();
           
        }
    }
}
